package com.inca;

import java.io.File;
import java.nio.charset.Charset;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class NpserverbootApplication {

	public static void main(String[] args) {
		Log log = LogFactory.getLog("");
		
		//System.setProperty("file.encoding", "GBK");
		String systemcharset = Charset.defaultCharset().name();
		//System.err.println(systemcharset);
		if(!"GBK".equalsIgnoreCase(systemcharset)) {
			System.err.println("!!!!!!!!ERROR charset is "+systemcharset+",java -Dfile.encoding=GBK, must be GBK");
		}
		
		//System.setProperty("nphome", "npserver");
		
		//debug
		File dir=new File("D:\\npserverboot343_18084\\npserver");
		System.setProperty("nphome", dir.getAbsolutePath());
		
		SpringApplication.run(NpserverbootApplication.class, args);
	}
}
